package com.scm.dao;

import com.scm.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProductMapper {
    List<Product> getAllProduct();
    int countAll();
    List<Product> findAllProduct(Map<String,Object> params);
    List<Product> findProduct(String id);
    void deleteProduct(String productCode);
    Product getProduct(String productCode);
    void updateProduct(Product product);
    void addProduct(Product product);
    Product getNameProduct(String name);
    void setPoNum(@Param("poNum") String poNum,@Param("productCode")String productCode);
    String getProductName(String productCode);
    void flushPoNum(@Param("poNum")String poNum,@Param("productCode")String productCode);
    void flushSoNum(@Param("soNum") String soNum, @Param("productCode")String productCode);
    void putStorage(@Param("num")String num ,@Param("productCode") String productCode);
    void outStorage(@Param("num")String num ,@Param("productCode") String productCode);
    List<Product> selectProduct(@Param("productCode")String productCode,@Param("name") String name);
    void augmentProduct(@Param("num")String num,@Param("productCode")String productCode);
    void reduceProduct(@Param("num")String num,@Param("productCode")String productCode);

}
